package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.vo.DeviceDataPointVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 小程序端关于家人DAO
 *
 * @Date 2025/10/29 17:09
 */
@Mapper
public interface FamilyMemberElderMapper extends BaseMapper<FamilyMemberElder> {

    List<DeviceDataPointVo> queryDeviceDataListByDay(
            @Param("functionId") String functionId,
            @Param("iotId") String iotId,
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime
    );

    List<DeviceDataPointVo> queryDeviceDataListByWeek(@Param("functionId") String functionId,
                                                      @Param("iotId") String iotId,
                                                      @Param("startTime") LocalDateTime startTime,
                                                      @Param("endTime") LocalDateTime endTime);
}
